package com.dms.modules.product.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 商品统计实体类
 */
@Data
@Accessors(chain = true)
@TableName("product_statistics")
@ApiModel(value = "商品统计实体", description = "商品统计信息")
public class ProductStatistics {

    @ApiModelProperty("统计ID")
    @TableId(type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("商品ID")
    private Long productId;

    @ApiModelProperty("浏览量")
    private Integer views;

    @ApiModelProperty("收藏数")
    private Integer favorites;

    @ApiModelProperty("销量")
    private Integer sales;

    @ApiModelProperty("平均评分")
    private BigDecimal ratingAvg;

    @ApiModelProperty("评价数量")
    private Integer reviewCount;

    @ApiModelProperty("更新时间")
    private LocalDateTime updateTime;
} 